package com.anyou.mall.platform.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
* @Description: 顶部背景dto
* @author: ylj
* @date: 2022/3/21 17:44
*/
@Data
@ApiModel(value = "时间设置DTO")
public class TopBackgroundDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "类型 1:自定义颜色 2:图片")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "RGB色值/图片url")
    @NotBlank(message = "RGB色值/图片url不能为空")
    private String value;


}
